| Module | WebmasterTools::Verification::Generator::Destroy |
| In: |
lib/webmaster_tools/verification.rb
|
called from script/destroy webmaster_verification
called from script/destroy webmaster_verification -p
Removes the route from config/routes.rb
# File lib/webmaster_tools/verification.rb, line 38
38: def route_webmaster_verification
39: logger.route "map.website_verification"
40: resource_list = resources.map { |r| r.to_sym.inspect }.join(', ')
41: look_for = "\n map.webmaster_verification\n"
42: gsub_file 'config/routes.rb', /(#{look_for})/mi, ''
43: end